package com.biz.primus.ms.depot.trans;

import com.biz.primus.common.utils.CopyUtils;
import com.biz.primus.model.depot.vo.EmployeeVo;
import com.biz.primus.ms.depot.dao.po.Employee;
import com.google.common.base.Function;

import javax.annotation.Nullable;

/**
 * EmployeePo2EmployeeVo
 *
 * @author jia JKLiues
 * @date 2017年10月12日
 */
public class EmployeePo2EmployeeVo implements Function<Employee, EmployeeVo> {
    @Nullable
    @Override
    public EmployeeVo apply(@Nullable Employee input) {
        EmployeeVo vo = new EmployeeVo();
        CopyUtils.copyProperties(input, vo);
        return vo;
    }
}